package com.ruoyi.system.domain;

import java.math.BigDecimal;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品库存对象 pms_sku
 *
 * @author ruoyi
 * @date 2024-11-27
 */
@Data
public class PmsSku extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long productId;

    /** sku编码 */
    @Excel(name = "sku编码")
    private String outSkuId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private BigDecimal price;

    /** 展示图片 */
    @Excel(name = "展示图片")
    private String pic;

    /** 库存 */
    @Excel(name = "库存")
    private Long stock;

    /** 商品销售属性，json格式 */
    @Excel(name = "商品销售属性，json格式")
    private String spData;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }
    public void setOutSkuId(String outSkuId)
    {
        this.outSkuId = outSkuId;
    }

    public String getOutSkuId()
    {
        return outSkuId;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setPic(String pic)
    {
        this.pic = pic;
    }

    public String getPic()
    {
        return pic;
    }
    public void setStock(Long stock)
    {
        this.stock = stock;
    }

    public Long getStock()
    {
        return stock;
    }
    public void setSpData(String spData)
    {
        this.spData = spData;
    }

    public String getSpData()
    {
        return spData;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("outSkuId", getOutSkuId())
            .append("price", getPrice())
            .append("pic", getPic())
            .append("stock", getStock())
            .append("spData", getSpData())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
